package com.liy.cloud.common.trade.entity;

import java.io.Serializable;

/**
 * 设备交易基础信息表实体类 作者: 日期：2018-08-12 18:00:02 描述：
 */
@SuppressWarnings("serial")
public abstract class TradeComm extends TradeCommEntity implements Serializable {

	/**
	 * 交易解析方法
	 * 
	 * @author shitou
	 * @param messag
	 * @return
	 */
	public abstract TradeComm init(String messag) throws Exception;


    @Override
	public String toString() {
		return "{\"TradeComm\": {\"version\": \"" + version + "\", \"operator\": \"" + operator + "\", \"testFlag\": \""
				+ testFlag + "\", \"greyFlag\": \"" + greyFlag + "\", \"deviceSum\": \"" + deviceSum
				+ "\", \"IndustrySplit\": \"" + IndustrySplit + "\", \"IndustryData\": \"" + IndustryData
				+ "\", \"IndustryDataLength\": \"" + IndustryDataLength + "\", \"crc16\": \"" + crc16
				+ "\", \"issuer\": \"" + issuer + "\", \"cardId\": \"" + cardId + "\", \"tradeTime\": \"" + tradeTime
				+ "\", \"cardSeq\": \"" + cardSeq + "\", \"deviceId\": \"" + deviceId + "\", \"tac\": \"" + tac
				+ "\", \"cardCode\": \"" + cardCode + "\", \"tradeCode\": \"" + tradeCode + "\", \"balance\": \""
				+ balance + "\", \"tradeMoney\": \"" + tradeMoney + "\", \"tradeValue\": \"" + tradeValue
				+ "\", \"deposit\": \"" + deposit + "\", \"cost\": \"" + cost + "\", \"media\": \"" + media
				+ "\", \"tradeSub\": \"" + tradeSub + "\", \"tradeAddress\": \"" + tradeAddress + "\", \"recvTime\": \""
				+ recvTime + "\", \"deviceSeq\": \"" + deviceSeq + "\", \"physicalId\": \"" + physicalId
				+ "\", \"samcardId\": \"" + samcardId + "\", \"samcardSeq\": \"" + samcardSeq
				+ "\", \"cardVersion\": \"" + cardVersion + "\", \"subCardCode\": \"" + subCardCode
				+ "\", \"cityCode\": \"" + cityCode + "\", \"businessCode\": \"" + businessCode + "\"}}";
	}

}